class MyArrat<T> {
    private T[] arr = (T[]) new Object[10];

    public T get(int index) {
        return arr[index];
    }

    public void set(int index,T value) {
        arr[index] = value;
    }
}

public class Demo1 {
    public static void main(String[] args) {
        MyArrat<String> arr = new MyArrat<String>();
       // arr.set(1,1000);
        MyArrat arr2 = new MyArrat();
    }
}

